import React from 'react';


class PageTitle extends React.Component{
	constructor(props){
		super(props);
	}
	
	componentWillMount(){
		document.title= this.props.title +'-Demon Mall';
	}
	
	render(){
		return (
			<div className="page-header">
				<div className="row">
					<div className="col-md-12">
						<h3>{this.props.title}</h3>
					</div>
				</div>
				{this.props.children}
			</div>
		)
	}
	
}
export default PageTitle;